<?php
class Zend_View_Helper_ChangeDescLang
{
	public function changeDescLang($modelList, $language)
	{
		$modelListTable = Zend_Registry::get('database')->modellist;
		if ($language == 'zh') {
			$modelList['description'] = $modelList[$modelListTable->description1];
		} elseif ($language == 'pt') {
			$modelList['description'] = $modelList[$modelListTable->description3];
		} else {
			$modelList['description'] = $modelList[$modelListTable->description2];
		}
		return $modelList;
	}
}
